package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ly.common.core.domain.BaseVo;
import lombok.Data;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * 金蝶-财务-应收票据背书明细对象 erp_king_finance_receipt_bill_recite_info
 *
 * @author wutao
 * @date 2024-06-24
 */
@TableName ( "erp_king_finance_receipt_bill_recite_info" )
@ApiModel ( value = "erp_king_finance_receipt_bill_recite_info对象", description = "金蝶-财务-应收票据背书明细" )
@Data
public class KingFinanceReceiptBillReciteEntity extends BaseVo {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId ( value = "id", type = IdType.INPUT )
    private String id;

    /**
     * 应收票据Id
     */
    @ApiModelProperty ( "应收票据Id" )
    @TableField ( "receipt_bill_id" )
    @Excel ( name = "应收票据Id" )
    private String receiptBillId;

    /**
     * 背书类型,根据该字段决定生成什么单据
     * {label: "转预付款", value: '1',}, //付款单（付款用途：预付款）
     * {label: "冲减应付款", value: '2',}, //付款单（付款用途：采购付款）
     * {label: "转其他应收款", value: '3',}, //其他应收单
     * {label: "转收款退款", value: '4',}, // 暂时不能选择
     * {label: "冲减预付款", value: '5',}, //暂时不能选择
     */
    @ApiModelProperty ( "背书类型,根据该字段决定生成什么单据" )
    @TableField ( "recite_type" )
    @Excel ( name = "背书类型,根据该字段决定生成什么单据" )
    private Integer reciteType;

    @ApiModelProperty ( "结算组织" )
    @TableField ( "settlement_dept_id" )
    @Excel ( name = "结算组织" )
    private String settlementDeptId;

    /**
     * 销售组织,取结算组织
     */
    @ApiModelProperty ( "销售组织,取结算组织" )
    @TableField ( "sale_dept_id" )
    @Excel ( name = "销售组织,取结算组织" )
    private String saleDeptId;

    /**
     * 背书金额
     */
    @ApiModelProperty ( "背书金额" )
    @TableField ( "recite_amount" )
    @Excel ( name = "背书金额" )
    private String reciteAmount;


    @ApiModelProperty ( "付款单单据类型，1：转预付款；2：冲减应付款" )
    @TableField ( "doc_type_id" )
    @Excel ( name = "单据类型,走接口(被背书单位类型是供应商时才有该值)" )
    private String docTypeId;

    /**
     * 收付款用途Id,走接口
     */
    @ApiModelProperty ( "收付款用途Id,对应上面付款单单据类型，1：预付款；2：采购付款" )
    @TableField ( "receipt_pay_purpose_id" )
    @Excel ( name = "收付款用途Id,走接口" )
    private String receiptPayPurposeId;

    /**
     * 其他应收单单据类型(背书类型为转其他应收款才有该值)
     */
    @ApiModelProperty ( "其他应收单单据类型：1" )
    @TableField ( "other_receipt_bill_type" )
    @Excel ( name = "其他应收单单据类型(背书类型为转其他应收款才有该值)" )
    private String otherReceiptBillType;

    /**
     * 本币别
     */
    @ApiModelProperty ( "本币别" )
    @TableField ( "king_base_currency_id" )
    @Excel ( name = "本币别" )
    private String kingBaseCurrencyId;

    /**
     * 汇率类型
     */
    @ApiModelProperty ( "汇率类型" )
    @TableField ( "rate_type" )
    @Excel ( name = "汇率类型" )
    private String rateType;

    /**
     * 汇率
     */
    @ApiModelProperty ( "汇率" )
    @TableField ( "rate" )
    @Excel ( name = "汇率" )
    private String rate;

    /**
     * 备注
     */
    @ApiModelProperty ( "备注" )
    @TableField ( "remarks" )
    @Excel ( name = "备注" )
    private String remarks;

    /**
     * 背书类型;1:背书;2:背书退回
     */
    @ApiModelProperty ( "背书类型;1:背书;2:背书退回" )
    @TableField ( "type" )
    @Excel ( name = "背书类型;1:背书;2:背书退回" )
    private Integer type;

    @ApiModelProperty ( "创建人" )
    @TableField ( "create_by" )
    private String createBy;

    @ApiModelProperty ( "创建时间" )
    @TableField ( "create_time" )
    private Date createTime;

    @ApiModelProperty ( "更新人" )
    @TableField ( "update_by" )
    private String updateBy;

    @ApiModelProperty ( "更新时间" )
    @TableField ( "update_time" )
    private Date updateTime;

    /**
     * $column.columnComment
     */
    @ApiModelProperty ( "背书类型;1:背书;2:背书退回" )
    @TableField ( "is_used" )
    @Excel ( name = "背书类型;1:背书;2:背书退回" )
    private Integer isUsed;

}
